package com.wsoft.constant.redis;

/**
 * @Author z001
 * @Date 2025/1/14 18:51
 */
public class ImRedisConstant {

    /**
     * 文件上传默认过期时间 单位秒 86400 = 1day
     */
    public static final long EXPIRED = 86400;
    /**
     * IM
     */
    private static final String IM = "IM:";

    /**
     * 群组
     */
    private static final String GROUP = IM + "GROUP:";
    /**
     * 群组信息
     * key:groupId
     * value:ImGroupEntity
     */
    public static final String GROUP_INFO = GROUP + "INFO:";

    //############################# group-member  ##############################

    private static final String GROUP_MEMBER = IM + "GROUP:MEMBER:";

    /**
     * 群组成员列表
     * key:groupId
     * value:groupMemberEntityList
     */
    public static final String GROUP_MEMBER_LIST = GROUP_MEMBER + "LIST:";

    //############################# member-config  ##############################

    private static final String MEMBER_CONFIG = IM + "MEMBER:CONFIG:";

    /**
     * 白名单成员列表
     * value:ImMemberConfigEntityList
     */
    public static final String MEMBER_WHITE_LIST = MEMBER_CONFIG + "WHITE:LIST";

    /**
     * 用户配置信息
     * key:memberId
     * value:ImMemberConfigEntity
     */
    public static final String MEMBER_INFO = MEMBER_CONFIG + "INFO:";


}
